﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ResourceLoadBalancer.WebServices.Contracts.Data;
using ResourceLoadBalancer.WebServices.Clients.Helpers;
using System.Xml;
using System.IO;

namespace FileDuplicateFinderHasher
{
    class Program
    {
        
        static void Main(string[] args)
        {
            
            
            string hashType = "";
            string queueName = "";
            if (args[0] != null)
            {
                hashType = args[0];
                queueName = args[1];
            }

            //Console.ReadLine();

            if (hashType == "FileSystem")
            {
                FileSystemHasher fileSystemHasher = new FileSystemHasher();
                fileSystemHasher.ProcessResourceQueue(queueName);
                fileSystemHasher.DeconfigureQueuing(queueName);
            }
            else if (hashType == "SharePoint")
            {
                SharePointHasher sharePointHasher = new SharePointHasher();
                sharePointHasher.ProcessResourceQueue(queueName);
                sharePointHasher.DeconfigureQueuing(queueName);
            }

            

            
        }


    }
}
